package com.u3k.mid;

import com.u3k.app.mid.HeartbeatListener;
import com.u3k.app.mid.HeartbeatManager;
import com.u3k.app.mid.utils.net.HttpClient;
import com.u3k.app.mid.utils.net.Request;

public class b extends Thread {
    final /* synthetic */ String a;
    final /* synthetic */ String b;
    final /* synthetic */ String c;
    final /* synthetic */ HeartbeatListener d;
    final /* synthetic */ HeartbeatManager e;

    public b(HeartbeatManager heartbeatManager, String str, String str2, String str3, HeartbeatListener heartbeatListener) {
        this.e = heartbeatManager;
        this.a = str;
        this.b = str2;
        this.c = str3;
        this.d = heartbeatListener;
    }

    public void run() {
        HttpClient httpClient = new HttpClient();
        String str = this.a == null ? am.a(this.e.mContext) + "/sdk/api/subscribe/regclient" : this.a;
        String access$000 = this.e.getJsonParams(this.e.mContext, this.b, this.c);
        LogUtils.LogError("HeartbeatManager", "heartbeatRequest  url=" + str);
        LogUtils.LogError("HeartbeatManager", "heartbeatRequest  params=" + access$000);
        httpClient.request(new Request().url(str).defaultHeader().post().addJson(access$000), new c(this));
    }
}
